<template>
  <div>
    <h1>App组件</h1>
    <Count/>
  </div>
</template>

<script lang="ts">
import {defineComponent} from "vue";

export default defineComponent({
  name: "App",
});

</script>

<script lang="ts" setup>
// 引入组件
import Count from "./components/Count/index.vue";
import {onMounted, ref} from "vue";

const countApp = ref('dasdas')

// $parent 传参 需要向子组件 导出 需要的参数
defineExpose({
  countApp
})

</script>

<style scoped>

</style>